# ---------------------------------------------------------------------------------------------------- #
# finalcode.R
# ---------------------------------------------------------------------------------------------------- #

Date: 2014-06-18
Authors: Jaime E. Settle, Robert M. Bond, Lorenzo Coviello, Christopher J. Fariss, James H. Fowler, Jason J. Jones, Adam D. I. Kramer, Cameron Marlow

All inquires about the models and code should be sent to Jaime Settle and Chris Fariss
Contact: jsettle@wm.edu cjf0006@gmail.com

Title:From Posting to Voting: The Effects of Political Competition on Online Political Engagement

Most recent version available at: http://ssrn.com/abstract=2232099

Journal: Political Science Research & Methods

Copyright (c) 2014, The R code is under the Creative Commons Attribution-Noncommercial-Share Alike 3.0 United States License.
For more information see: http://creativecommons.org/licenses/by-nc-sa/3.0/us/
All rights reserved.


# ---------------------------------------------------------------------------------------------------- #
# Run the R files in the following order:
# ---------------------------------------------------------------------------------------------------- #

1. sample2.R
2. vote2.R
3. finalcode.R

# ---------------------------------------------------------------------------------------------------- #
# install R and necessary packages for analysis
# ---------------------------------------------------------------------------------------------------- #

open the .R file using any text or source code editor such as:
	TextEdit, emacs, Aquamacs, notepad++ , or Xpad

set the working directory to the folder containing the data files 

the set working directory command in R is setwd()
	type ?setwd for help documentation 

to set the path type into R: 

setwd("PATH_NAME")

where PATH_NAME is the path to the folder with the data

install packages if necessary:
	install.packages("foreign")
	install.packages("MatchIt")
	install.packages("gtools")




# ---------------------------------------------------------------------------------------------------- #
# Data Source Used in this Project
# ---------------------------------------------------------------------------------------------------- #

The data are available by request though Facebook Inc. Interested parties need to contact Facebook Inc. directly to obtain secure access to the data. Researchers interested in obtaining the data for replication should contact Jessica Traynor at jessicat@fb.com. 

# ---------------------------------------------------------------------------------------------------- #
# end file
# ---------------------------------------------------------------------------------------------------- #

